package com.yang.SpringTest.annotation.preposLearn;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * <p>PrePostDemo类</p>
 *
 * @author By: chengxuyuanshitang
 * Package com.yang.SpringTest.annotation.preposLearn
 * Ceate Time 2024-04-11 15:24
 */
public class PrePostDemo {
    public PrePostDemo() {
        System.out.println("****** PrePostDemo constructor ...");
    }

    public void initMethod() {
        System.out.println("****** PrePostDemo init ...");
    }
    public void destroyMethod() {
        System.out.println("****** PrePostDemo destroy ...");
    }
    @PostConstruct
    public void postConstruct(){
        System.out.println("****** PrePostDemo postConstruct ...");
    }
    @PreDestroy
    public void preDestroy(){
        System.out.println("****** PrePostDemo preDestroy ...");
    }
}

